<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <input type="text" @keyup.alt.enter="show('Alt + Enter')" value="Alt + Enter 试试？">
        <button @click.ctrl="show('点击 + Ctrl')">Ctrl+单击试试？</button>
        <!-- @keyup.ctrl.click这样写是没用的 -->
    </div>
    <script src="../assets/vue2.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            methods: {
                show(msg) {
                    alert(msg);
                }
            },
        });
    </script>
</body>

</html>